package devicedbgui.data;
/** Stores test case information */
public class TestCase {
   /** Stores test case id*/
    public int idTestCase;
    /** Stores description of test case */
    public String description;
    /** Stores name of associated exe file */
    public int exe_idexe;
   /** Default constructor for class TestCase */
    public TestCase(){}
     /** Constructor: initialises all components of class */    
    public TestCase(int idTestCase,
        String description,
        int exe_idexe)
    {
        this.idTestCase = idTestCase;
        this.description = description;
        this.exe_idexe = exe_idexe;
    }
    /** Gets description of test case */
    public String getTestCase()
    {
        if (description == null || description.equals(""))
            return "";
        String[] tmp = description.split(";");
        if (tmp.length != 2)
            return "";
        return tmp[0];
    }
    /* Gets result of test case */
    public String getResult()
    {
        if (description == null || description.equals(""))
            return "";
        String[] tmp = description.split(";");
        if (tmp.length != 2)
            return "";
        return tmp[1];
    }
}
